package com.atguigu.scala.chapter8

import scala.io.StdIn

/**
 * @author lizikuan
 * @date 2021/5/25 17:59
 */
object $01_MatchDefined {
  def main(args: Array[String]): Unit = {
    val str = StdIn.readLine("请输入单词: ")
    str match {
      case "world" => println("----------")
      case "hello" => println("hello----")
    }
  }
}
